$(document).ready(function() {
	var Post ="mid="+basedata.mid+"&groupid="+basedata.groupid+"&token="+basedata.token+
	"&did="+commondata.myinfo;
	$.ajax({
		url:'../api/getappversioninfo',
		type:'post',
		data:Post,
		success:function(msg){
			if(msg.code == 100){
				$(".bb span").html(msg.message);
			}
		}
	});
	getUserAgreement();
});

function getUserAgreement() {
	var Post ="mid="+basedata.mid+"&groupid="+basedata.groupid+"&token="+basedata.token+"&did="+commondata.myinfo;
	$.ajax({
		url:'../api/yunzo/userprot',
		type:'post',
		data:Post,
		success:function(msg){
			if(msg.code == 100){
				$("#agreement a").attr("href",msg.message);
			}
		}
	});
}